package com.demo5;

public class Test {
    public static void main(String[] args) {
        //创建对象
        PingPongAthletic pingPongAthletic = new PingPongAthletic("刘诗雯",26);
        System.out.println(pingPongAthletic.getName()+","+pingPongAthletic.getAge());
        pingPongAthletic.study();
        pingPongAthletic.speakEnglish();
        System.out.println("=========");
        PingPongCoach pingPongCoach = new PingPongCoach("刘强",30);
        System.out.println(pingPongCoach.getName()+","+pingPongCoach.getAge());
        pingPongCoach.teach();
        pingPongCoach.speakEnglish();
        System.out.println("=========");
        BasketballAthletic basketballAthletic = new BasketballAthletic("姚明", 36);
        System.out.println(basketballAthletic.getName()+","+basketballAthletic.getAge());
        basketballAthletic.study();
        System.out.println("=========");
        BasketballCoach basketballCoach = new BasketballCoach("张山", 39);
        System.out.println(basketballCoach.getName()+","+basketballCoach.getAge());
        basketballCoach.teach();
    }
}
